home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Games Collection 1 / software vault.zip / software vault / CDR10 / SPX20.ZIP / SPX_INT.ZIP / SPX_IMG.INT < prev    next >
Text File  |  1993-09-14  |  1KB  |  38 lines

  1. Unit SPX_IMG;
  2.  
  3. {$O+ }
  4. { SPX Library Version 2.0  Copyright 1993 Scott D. Ramsay }
  5.  
  6. Interface
  7.  
  8. Uses spx_vga,spx_dos;
  9.  
  10. const
  11.   img_noerror   = 0;    { no error }
  12.   img_notbmp    = 1;    { not a win3.0 BMP file }
  13.   img_notpcx    = 2;    { not a 256 color PCX file }
  14.   img_errorload = 3;    { file not found or open error }
  15.   img_errorread = 4;    { other disk read error }
  16.   img_badcolor  = 5;    { not 8bit BMP file }
  17.   img_errorsave = 6;    { error saving PTR file }
  18.   img_erralloc  = 7;    { memory allocation error }
  19.  
  20. type
  21.   VidHdrType = record
  22.                  position,count : word;
  23.                end;
  24.  
  25. var
  26.   rgb256       : RGBlist;
  27.  
  28. function loadbmp(bfilename:string;x,y:integer):integer;
  29. function loadpcx(pfilename:string):integer;
  30. function loadspcx(fname:string;x,y:integer):integer;
  31. procedure filepcx(var pcxfile:file;size:longint);
  32. procedure drawpcx(var p;size:word);
  33. procedure drawspcx(var start;size:longint;x,y:integer);
  34. procedure DrawPtr(var p;merge:boolean;sz:longint);
  35. function LoadPTR(fn:string;merge:boolean):integer;
  36. function SavePTR(fn:string):integer;
  37.  
  38.